package edu.iiitb.gis.vts.action;

import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

import edu.iiitb.gis.vts.service.VehicleService;

public class TrackVehicle extends ActionSupport {

	private static final long serialVersionUID = 4169905492921132205L;
	private ArrayList<String> vehicleIDList;
	
	public String execute() {
		
		VehicleService vehicleService = new VehicleService();
		vehicleIDList = vehicleService.getvehicleIDs();
		System.out.println("Number of vehicle IDs = " + vehicleIDList.size());
		
		return "success";
	}

	public void setVehicleIDList(ArrayList<String> vehicleIDList) {
		this.vehicleIDList = vehicleIDList;
	}

	public ArrayList<String> getVehicleIDList() {
		return vehicleIDList;
	}

}
